﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="VideoList.ascx.cs" Inherits="Controls_VideoList" %>
    <div class="article-r">
        <iframe id="someFrame" width="275" height="220" src="http://www.youtube.com/embed/NaRlIwCk3lo"
            frameborder="0" allowfullscreen></iframe>
        <div id="mcs_container">
            <div class="customScrollBox">
                <div class="container">
                    <div class="content">
                        <ul class="list-news list_video">
                            <asp:Repeater ID="rpt" runat="server">
                                <ItemTemplate>
                                    <li><a href="#" ref="http:<%#Eval("Summary") %>" class="viewvideo">
                                        <%#Eval("Title") %></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                        </ul>
                    </div>
                </div>
                <div class="dragger_container">
                    <div class="dragger">
                    </div>
                </div>
            </div>
            <!--    <a href="#" class="scrollUpBtn"></a> <a href="#" class="scrollDownBtn"></a>-->
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#someFrame").attr("src", $('ul.list_video li:first-child a').attr("ref"));
            $(".viewvideo").click(function (e) {
                e.preventDefault();

                $("#someFrame").attr("src", $(this).attr("ref"));
            })
        });
    </script>
